import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '购买人姓名',
            dataIndex: 'name',
            width: 200,
        },
        {
            title: '购买人手机号',
            dataIndex: 'phone',
            width: 200,
        },
        {
            title: '推荐人姓名',
            dataIndex: 'saleName',
            width: 200,
        },
        {
            title: '购买类型',
            dataIndex: 'type',
            width: 200,
        },
        {
            title: '支付状态（1支付成功，0支付失败，2待支付）',
            dataIndex: 'payStyle',
            width: 200,
        },
        {
            title: '付款金额',
            dataIndex: 'pay',
            width: 200,
        },
        {
            title: '订单编号',
            dataIndex: 'orderNum',
            width: 200,
        },
        {
            title: '会员状态（0无，1正常，2已退，3到期）',
            dataIndex: 'style',
            width: 200,
        },
        {
            title: '激活码',
            dataIndex: 'code',
            width: 200,
        },
        {
            title: '创建日期',
            dataIndex: 'createDate',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '购买人姓名',
            field: 'name',
            component: 'Input',
            required: true,
        },
        {
            label: '购买人手机号',
            field: 'phone',
            component: 'Input',
            required: true,
        },
        {
            label: '推荐人姓名',
            field: 'saleName',
            component: 'Input',
            required: true,
        },
        {
            label: '购买类型',
            field: 'type',
            component: 'Input',
            required: true,
        },
        {
            label: '支付状态（1支付成功，0支付失败，2待支付）',
            field: 'payStyle',
            component: 'Input',
            required: true,
        },
        {
            label: '付款金额',
            field: 'pay',
            component: 'Input',
            required: true,
        },
        {
            label: '订单编号',
            field: 'orderNum',
            component: 'Input',
            required: true,
        },
        {
            label: '会员状态（0无，1正常，2已退，3到期）',
            field: 'style',
            component: 'Input',
            required: true,
        },
        {
            label: '激活码',
            field: 'code',
            component: 'Input',
            required: true,
        },
        {
            label: '创建日期',
            field: 'createDate',
            component: 'Input',
            required: true,
        },
];
